{* Smarty *}

<div>
    <form method="POST"  name="types_discount_name" action="{$url_location}" >
    Select Discount Type : 
    <select name="type_id" onchange="document.types_discount_name.submit()"> 
    <option value="0">Root</option>
    {foreach from=$types_discounts item=type}
        <option value="{$type.id_type}" {if $cur_type == $type.id_type}selected{/if}>{$type.title}</option>
    {foreachelse}
    {/foreach}
    </select>
    </form>
</div>
<br />
<br />

{$discounts}

<br />
<br />
<input type="button" class="button" value="Create Discount Event" onClick="javascript : window.location.href='{$url_location}&page=add&id=0'"/>